package com.ruoyi.level.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.level.dao.IPointsLevelRuleDao;
import com.ruoyi.level.domain.PointsLevelRule;
import com.ruoyi.level.mapper.PointsLevelRuleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户积分等级规则Dao业务层处理
 *
 * @author 区嘉盛
 * @date 2025-06-16
 */
@Repository
public class PointsLevelRuleDaoImpl extends ServiceImpl<PointsLevelRuleMapper, PointsLevelRule> implements IPointsLevelRuleDao {

    @Autowired
    private PointsLevelRuleMapper pointsLevelRuleMapper;

    /**
     * 获取所有不同的等级体系名称
     *
     * @return 等级体系名称列表
     */
    @Override
    public List<String> selectAllSystemNames() {
        return pointsLevelRuleMapper.selectAllSystemNames();
    }
}